package Harmonisation;

import java.io.File;

import javax.sound.midi.MidiSystem;
import javax.sound.midi.Sequence;
import javax.sound.midi.Sequencer;

public class LectureMidi {
	public static void lecture(String nom) {
		try {
			Sequence seq = MidiSystem.getSequence(new File(nom));
			Sequencer sequencer = MidiSystem.getSequencer();
			sequencer.open();
			sequencer.setSequence(seq);
			sequencer.start();
		} catch (Exception e) {

		}
	}
}
